#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL;
namespace Cephei.QL.Methods.Lattices
{
    /// <summary> 
	/// ! This class defines a recombining trinomial tree approximating a 1-D stochastic process. \warning The diffusion term of the SDE must be independent of the underlying process.  \ingroup lattices
	/// </summary>
    [Guid ("D6C6480F-0FE3-44e5-9F5C-8159AF8824F5"),ComVisible(true)]
	public interface ITrinomialTree 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Descendant(UInt64 i, UInt64 index, UInt64 branch);
        /// <summary> 
		/// 
		/// </summary>
		 Double Dx(UInt64 i);
        /// <summary> 
		/// 
		/// </summary>
		 Double Probability(UInt64 i, UInt64 index, UInt64 branch);
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Size(UInt64 i);
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.ITimeGrid TimeGrid {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Underlying(UInt64 i, UInt64 index);
    }   

    /// <summary> 
	/// ! This class defines a recombining trinomial tree approximating a 1-D stochastic process. \warning The diffusion term of the SDE must be independent of the underlying process.  \ingroup lattices Factory
	/// </summary>
   	[ComVisible(true)]
    public interface ITrinomialTree_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    ITrinomialTree Create (Cephei.QL.IStochasticProcess1D process, Cephei.QL.ITimeGrid timeGrid, Microsoft.FSharp.Core.FSharpOption<Boolean> isPositive);
    }
}

